package org.easy.tencim.model;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

/**
 * @author: Li chaojie
 * @Date: 2022/3/21
 * @Description: {
 * "ActionStatus": "OK",
 * "ErrorInfo": "",
 * "ErrorCode": 0,
 * "MsgTime": 1572870301,
 * "MsgKey": "89541_2574206_1572870301"
 * }
 * <p>
 * 字段	类型	说明
 * ActionStatus	String	请求处理的结果，OK 表示处理成功，FAIL 表示失败
 * ErrorCode	Integer	错误码，0表示成功，非0表示失败
 * ErrorInfo	String	错误信息
 * MsgTime	Integer	消息时间戳，UNIX 时间戳
 * MsgKey	String	消息唯一标识，用于撤回。长度不超过50个字符
 */
@Data
public class IMResponseMsg {
    public final static String SUCCESS = "OK";
    public final static String FAIL = "FAIL";
    @JSONField(name = "ActionStatus")
    private String actionStatus;
    @JSONField(name = "ErrorInfo")
    private String errorInfo;
    @JSONField(name = "ErrorCode")
    private Integer errorCode;
    @JSONField(name = "MsgTime")
    private Long msgTime;
    @JSONField(name = "MsgKey")
    private String msgKey;
    @JSONField(name = "GroupId")
    private String groupId;
    @JSONField(name = "MsgId")
    private String msgId;


}
